<?php defined('InShopNC') or exit('Access Invalid!');?>
<style>
	.ncap-btn{    
			color: #FFF;
    	background-color: #1BBC9D;
    	border: 1px solid #16A086;
    	padding:5px;
    	border-radius: 4px;
    }
</style>
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <div class="subject">
        <h3>机器人配置<?php echo $output['test']; ?></h3>
        <h5>请注意是否开启</h5>
      </div>
      <ul class="tab-base nc-row">
        <li><a href="/admin/modules/shop/index.php?act=kanjia" class="current">机器人配置</a></li>
        <li><a href="/admin/modules/shop/index.php?act=promotion_kanjia&op=kanjia_list">砍价套餐管理</a></li>
        <li><a href="/admin/modules/shop/index.php?act=promotion_kanjia&op=kanjia_setting" >砍价套餐设置</a></li>
      </ul>
    </div>
  </div>
  <form method="post" name="settingForm" id="settingForm">
    <div class="ncap-form-default">
      <dl class="row">
        <dt class="tit">自动砍价状态</dt>
        <dd class="opt">
          <div class="onoff">
            <label for="robot_1" class="cb-enable <?php if($output['config'][0]['robot'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['open'];?>"><?php echo $lang['open'];?></label>
            <label for="robot_0" class="cb-disable <?php if($output['config'][0]['robot'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['close'];?>"><?php echo $lang['close'];?></label>
            <input id="robot_1" name="robot1" <?php if($output['config'][0]['robot'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
            <input id="robot_0" name="robot1" <?php if($output['config'][0]['robot'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
          </div>
          <p class="notic"><?php echo $lang['voucher_allow_notice'];?></p>
        </dd>
      </dl>
     
      <dl class="row">
        <dt class="tit">机器人砍价，自动砍价时长</dt>
        <dd class="opt">
          <div class="onoff">
            <input type="text" value="<?php echo $output['config'][0]['robot_time']?>" name="robot_time1" class="" />
          </div>
          <a>单位：秒</a>
        </dd>
      </dl>
      <dl class="row">
        <dt class="tit">自动拼团状态</dt>
        <dd class="opt">
          <div class="onoff">
            <label for="robot_2" class="cb-enable <?php if($output['config'][1]['robot'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['open'];?>"><?php echo $lang['open'];?></label>
            <label for="robot_3" class="cb-disable <?php if($output['config'][1]['robot'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['close'];?>"><?php echo $lang['close'];?></label>
            <input id="robot_2" name="robot2" <?php if($output['config'][1]['robot'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
            <input id="robot_3" name="robot2" <?php if($output['config'][1]['robot'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
          </div>
          <p class="notic"><?php echo $lang['voucher_allow_notice'];?></p>
        </dd>
      </dl>
     
      <dl class="row">
        <dt class="tit">机器人拼团，自动拼团时长</dt>
        <dd class="opt">
          <div class="onoff">
            <input type="text" value="<?php echo $output['config'][1]['robot_time']?>" name="robot_time2" class="" />
          </div>
          <a>单位：秒</a>
        </dd>
      </dl>
      <div class="bot">
      	<input type="submit" value="<?php echo $lang['nc_submit'];?>" class="ncap-btn" />
      </div>
    </div>
  </form>
</div>
<script src="/data/resource/js/layer/layer.js"></script>
<script type="text/javascript">
	<?php if($output['status']){ ?>
		layer.msg('保存成功');
	<?php } ?>
</script>